package cn.itcast.order.mapper;

import cn.itcast.order.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 黄晏凯
 */
@Mapper
public interface OrderMapper {

    /**
     * 通过id查询
     *
     * @param id id
     * @return {@link Order}
     */
    @Select("select * from tb_order where id = #{id}")
    Order findById(Long id);
}
